package cn.rengy.web.generate;

import cn.hutool.core.util.StrUtil;

public class _Utils {

	
	public static String getBeanTypeName(String name){
		String beanName=getBeanName(name);
		return beanName.substring(0, 1).toUpperCase()+beanName.substring(1);
	}
	
	public static String getCode(String name){
		int i=name.indexOf("_")==-1?0:name.indexOf("_")+1;
		return name.substring(i);
	}
	
	public static String getBeanName(String name) {
		return StrUtil.toCamelCase(name);
	}
	
	public static void main(String[] args) {
	        System.out.println(getBeanTypeName("iso_certified_staff"));
	        System.out.println(getBeanName("iso_certified_staff"));
	        System.out.println(getBeanTypeName("UserID"));
	        System.out.println(getBeanTypeName("iso_certified_staff"));
	        System.out.println(getBeanTypeName("certified_staff"));
	        System.out.println(getBeanTypeName("user_id"));
    }
}
